package cn.bonoon.kernel.query;

import java.io.Serializable;

/**
 * <pre>
 * 查询条件的定义
 * 
 * 子类可以用{@link cn.bonoon.kernel.web.annotations.condition.ConditionStyle ConditionStyle}进行注解
 * </pre>
 * @author jackson
 * 
 */
public class SearchCondition implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8110068015663130933L;
	
	/**
	 * 对应'asc' or 'desc'
	 */
	private String order;
	
	/**
	 * 排序定义的名称
	 */
	private String sort;
//	
//	private Long ownerId = null;
//	private Long createrId = null;
	
	public SearchCondition(){}
	
	protected SearchCondition(SearchCondition copy){
		order = copy.order;
		sort = copy.sort;
//		ownerId = copy.ownerId;
//		createrId = copy.createrId;
	}

	/**
	 * 对应'asc' or 'desc'
	 * @return
	 */
	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
//
//	public Long getOwnerId() {
//		return ownerId;
//	}
//
//	public void setOwnerId(Long ownerId) {
//		this.ownerId = ownerId;
//	}
//
//	public Long getCreaterId() {
//		return createrId;
//	}
//
//	public void setCreaterId(Long createrId) {
//		this.createrId = createrId;
//	}
}
